﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;

namespace FriendAD.Core
{
    public class FriendADContext : DbContext
    {
        public FriendADContext() : base("Friend_AD_DB")
        {
            Database.SetInitializer(new CreateDatabaseIfNotExists<FriendADContext>());
        }

        public DbSet<Admin> Admins { set; get; }
        public DbSet<Role> Roles { set; get; }
        public DbSet<User> Users { set; get; }
        public DbSet<Ad> Ads { set; get; }
        //public DbSet<Article> Articles { set; get; }
        public DbSet<Info> Infos { set; get; }
    }
}